//
//  BIDUserInput.m
//  随手记01
//
//  Created by 邵瑞 on 13-5-1.
//  Copyright (c) 2013年 邵瑞. All rights reserved.
//

#import "BIDABill.h"

@implementation BIDABill
@synthesize Camount = _Camount;
@synthesize Cdescription = _Cdescription;
@synthesize Ctime = _Ctime;
@synthesize CtypeAndSubtype=_CtypeAndSubtype,Cmonth;
@synthesize CsetMonth=_CsetMonth,payoutId,type_ID,subType_ID,whichWay;
-(void)setCsetMonth:(NSDate *)CsetMonth
{
    NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
    
    NSInteger unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSWeekdayCalendarUnit |
    NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit;
    
    NSDateComponents *comps  = [calendar components:unitFlags fromDate:CsetMonth];
    
    self.Cmonth=[comps month];
}
@end
